import { Commit } from "vuex";
interface ILabel {
  title: string | undefined;
  type: number | undefined;
}
interface ILists {
  comment: number;
  create_time: string;
  d_title: string;
  flagship_store: number;
  goodsid: string;
  huodong_type: string;
  id: string;
  istmall: string;
  jiage: number;
  jump_url: string;
  label: ILabel[];
  p_labels: ILabel;
  pic: string;
  quan_jine: number;
  quan_num: string;
  quan_over: string;
  sales_num: string;
  t_labels: [];
  xiaoliang: string;
  yuanjia: number;
}

interface IState {
  shows: ILists[];
}

interface IList {
  namespaced: boolean;
  state: IState;
  actions: {
    getLists: (
      { commit }: { commit: Commit },
      {
        params,
      }: {
        params: {
          token: string;
        };
      }
    ) => void;
  };
  mutations: {
    GET_LISTS: (state: IState, { payload }: { payload: ILists[] }) => void;
  };
}

export { IList, ILists };
